package com.love.poetry.application.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.love.poetry.application.KeywordTagService;
import com.love.poetry.domain.KeywordTag;
import com.love.poetry.infrastructure.persist.KeywordTagRepostory;
import com.youboy.core.orm.Page;

@Service
@Transactional
public class KeywordTagServiceImpl implements KeywordTagService {

	@Autowired
	private KeywordTagRepostory keywordTagRepostory;
	
	public void save(KeywordTag keywordTag) {
		keywordTagRepostory.save(keywordTag);
	}

	public void update(KeywordTag keywordTag) {
		keywordTagRepostory.update(keywordTag);
	}

	public void delete(KeywordTag keywordTag) {
		keywordTagRepostory.delete(keywordTag);
	}

	public void delete(String id) {
		keywordTagRepostory.delete(id);
	}

	public KeywordTag get(String id) {
		return keywordTagRepostory.get(id);
	}

	public List<KeywordTag> query(Object object) {
		return keywordTagRepostory.query(object);
	}

	public Page<KeywordTag> queryPage(Page<KeywordTag> page) {
		return keywordTagRepostory.queryPage(page);
	}

	public KeywordTag queryUniqueByPath(String path) {
		return keywordTagRepostory.queryUniqueByPath(path);
	}

	public KeywordTag queryUniqueByName(String name) {
		return keywordTagRepostory.queryUniqueByName(name);
	}

	public List<KeywordTag> queryTop() {
		return keywordTagRepostory.queryTop();
	}
}